package cn.yunhe.util;

public class PageUtil {
    public static final int PAGE_SIZE = 3;

    //统计页数
    public static int getTotalPages(int totalRows) {
        return totalRows % PAGE_SIZE == 0 ? totalRows / PAGE_SIZE : totalRows / PAGE_SIZE + 1;
    }
}
